#!/bin/bash

# Installe les dépendances de Apache commons codec
mvn install:install-file -DgroupId=org.apache.commons -DartifactId=commons-codec -Dversion=1.4 -Dpackaging=jar -Dfile=commons-codec-1.4.jar

# Installe les dépendances Spring Security 3.0.2
unzip spring-security-3.0.2.RELEASE.zip
cd spring-security-3.0.2.RELEASE/dist
mvn install:install-file -DgroupId=org.springframework.security -DartifactId=org.springframework.security.core -Dversion=3.0.2.RELEASE -Dpackaging=jar -Dfile=spring-security-core-3.0.2.RELEASE.jar
mvn install:install-file -DgroupId=org.springframework.security -DartifactId=org.springframework.security.web -Dversion=3.0.2.RELEASE -Dpackaging=jar -Dfile=spring-security-web-3.0.2.RELEASE.jar
mvn install:install-file -DgroupId=org.springframework.security -DartifactId=org.springframework.security.config -Dversion=3.0.2.RELEASE -Dpackaging=jar -Dfile=spring-security-config-3.0.2.RELEASE.jar
mvn install:install-file -DgroupId=org.springframework.security -DartifactId=org.springframework.security.taglibs -Dversion=3.0.2.RELEASE -Dpackaging=jar -Dfile=spring-security-taglibs-3.0.2.RELEASE.jar
cd ../..
rm -R spring-security-3.0.2.RELEASE/
